<script context="module">
    export let onlineCount = 0;
    export let article =
            `<p>
                <strong>This @html render content!</strong>
            <p>`;

    export async function preload(page, session) {
        console.log(this)
        console.log('page', page)
        console.log('session', session)

        // return this.error(500, 'data source fail.')
        // return this.redirect(200, '/blog')
    }
</script>

<h1>登录页面</h1>
<small>当前在线人数: <count class="count">{onlineCount}</count></small>

<div class='content'>
    {@html article}
</div>


<style>
    .count {
        ccolor: red;
    }
</style>